This scenario verifies that a global admin who assumed just the global admin role still sees all subjects across all realms, keeping this endpoint consistent with purely ReBAC-based APIs in which the global-admin role can see everything.
| name | value |
|---|---|
| assumedRoleIdName | rbac.global#global:ADMIN |
| name | value |
|---|---|
| expectedSubjectNames | [ { “name”: “hsh-alex_superuser” }, { “name”: “hsh-fran_superuser” }, { “name”: “tst-customer_admin_xxx” }, { “name”: “/hsh-Hostmasters” }, { “name”: “/xyz-Service” } ] |
HTTP GET "/api/rbac/subjects" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "comment" : "a global admin",` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
-H 'Hostsharing-Assumed-Roles: rbac.global#global:ADMIN'
=> status: 200 OK
[
{
"uuid" : "242a0005-0000-0000-0000-000000000005",
"name" : "abc-peter.smith",
"organization" : "abc",
"type" : "USER"
},
{
"uuid" : "27bf3e63-a89e-42b6-8881-42b192a6b2c4",
"name" : "/abc-Team",
"organization" : "abc",
"type" : "GROUP"
},
{
"uuid" : "40c21151-9f4b-50f2-9755-a69fcb7d4d7a",
"name" : "hsadminng.provisioning.key",
"organization" : "hsadminng",
"type" : "API_KEY"
},
{
"uuid" : "e72bcbba-3efe-5275-b57a-5194ece1cfa9",
"name" : "hsh-alex_superuser",
"organization" : "hsh",
"type" : "USER"
},
{
"uuid" : "8fb32bb1-4696-534f-93d1-b03df461d689",
"name" : "hsh-fran_superuser",
"organization" : "hsh",
"type" : "USER"
},
"..."
]
generated on 2026-08-10 01:37:48 for branch